package com.huawei.java.main.classes;

public class Factory<T> {
    private final Creator<T> creator;
    public <C extends Creator<T>> Factory(C creator) {
        this.creator = creator;
    }

    public T create(String describe) {
        return creator.create(describe);
    }
}
